package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.UserDateDao;
import com.qc.entity.BrowseEntity;
import com.qc.service.UserDateService;

@Service("userDateService")
public class UserDateServiceImpl implements UserDateService{

	@Resource(name="userDateDao")
	private UserDateDao userDateDao;
	
	@Override
	public int saveBrowse(BrowseEntity browseEntity) {

		return userDateDao.saveBrowse(browseEntity);
	}

	@Override
	public int updateBrowse(BrowseEntity browseEntity) {

		return userDateDao.updateBrowse(browseEntity);
	}

	@Override
	public BrowseEntity getBrowseId(long userId, long receiveId) {

		return userDateDao.getBrowseId(userId, receiveId);
	}

	@Override
	public List<BrowseEntity> listAllBrowse(long userId,long receiveId, int pageNo, int pageSize) {

		return userDateDao.listAllBrowse(userId, receiveId,pageNo, pageSize);
	}

}
